import request from '@/utils/request'
// 登录
export function login(data) {
	return request({
		url: '/admin/login',
		method: 'post',
		params: data
	})
}
// 退出登录
export function logout(data) {
	return request({
		url: '/admin/logout',
		method: 'post',
		params: data
	})
}
export function editPwd(data) {
	return request({
		url: '/admin/change_pwd',
		method: 'post',
		data
	})
}
export function safeVerify(data) {
	return request({
		url: '/Man/Login/safeVerify',
		method: 'post',
		params: data
	})
}
export function sendMsg(data) {
	return request({
		url: '/Company/Login/sendMsg',
		method: 'post',
		data
	})
}
// 获取权限
export function getMenus(data) {
	return request({
		url: '/Man/Role/menus',
		method: 'post',
		data
	})
}
export function getInfo(token) {
	return request({
		url: '/Man/main/welcome',
		method: 'get',
		params: {
			token
		}
	})
}

export function getUserInfo() {
	return request({
		url: '/admin/user/adminInfo',
		method: 'post'
	})
}